/*
vue2 Vue.use({
    install(vue,options){
      vue.component(组件名，导入的组件)
    }
},options实参)
vue2 Vue.use(function install(vue,options){
      vue.component(组件名，导入的组件)
    }
,options实参)

vue3 app.use({install(app,options){}}/function(app,options),options实参)

*/
import { App } from 'vue'
// export default {
//   install (app: App, options: string[]) {
//     console.log('use执行了', options)
//   }
// }
import XtxSkeleton from '@/components/skeleton/index.vue'
import XtxCarousel from '@/components/carousel/index.vue'
import XtxMore from '@/components/more/index.vue'
export default function (app: App, options: string[]) {
  console.log('use执行了', options)
  app.component(XtxSkeleton.name, XtxSkeleton)
  app.component(XtxCarousel.name, XtxCarousel)
  app.component(XtxMore.name, XtxMore)
}
